import request from '@/utils/request'

// 查询标注软件列表
export function listSoftware(query) {
  return request({
    url: '/mark/software/list',
    method: 'get',
    params: query,
  })
}

// 查询标注软件详细
export function getSoftware(id) {
  return request({
    url: '/mark/software/' + id,
    method: 'get',
  })
}

// 新增标注软件
export function addSoftware(data) {
  return request({
    url: '/mark/software',
    method: 'post',
    data: data,
  })
}

// 修改标注软件
export function updateSoftware(data) {
  return request({
    url: '/mark/software',
    method: 'put',
    data: data,
  })
}

// 删除标注软件
export function delSoftware(id) {
  return request({
    url: '/mark/software/' + id,
    method: 'delete',
  })
}

// 导出标注软件
export function exportSoftware(query) {
  return request({
    url: '/mark/software/export',
    method: 'get',
    params: query,
  })
}
